package org.coone.veteran.basic.function.lambda;

/**
 * Lambda表达式 无参数对象创建
 * 
 * @author yangpeng
 */
public class LambdaNoArgumentsDemo {

	public void lambdaMothed1() {
		Runnable noArguments = () -> System.out.println("Hello World");

		new Thread(noArguments).start();
	}

	public static void main(String[] args) {
		LambdaNoArgumentsDemo ld = new LambdaNoArgumentsDemo();
		ld.lambdaMothed1();
	}
}
